package model;

import java.util.TreeSet;

public class SearchResult {
	public int id;
	public TreeSet<String> key;
	public String words;
	public String itemids;
	public String ctime;
	public int count;
	public int hashcode;
	
    	
	public int getHashcode() {
		return this.getWords(" ").hashCode();
	}


	public void addKey(String word,String split){
		for(String str:word.split(split))
			this.key.add(str);
	}
	 
	public String getWords(String split) {
		
		return words;
	}
	public void setWords(String words) {
		this.words = words;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getItemids() {
		return itemids;
	}
	public void setItemids(String itemids) {
		this.itemids = itemids;
	}
	public String getCtime() {
		return ctime;
	}
	public void setCtime(String ctime) {
		this.ctime = ctime;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
}
